<?php

class User
{
  function __sleep()
  {
    echo __LINE__ , "\n\n";
    return array();
  }

  function __wakeup()
  {
    echo __LINE__ , "\n\n";
  }

}

$amit = new User;

$str = serialize($amit);
var_dump($str);
unserialize($str);
